Platform Explorer / Nuxeo Platform 2021.47

Operation Blob.CreateFromURL (File From URL)

Description

Creates a file from a given URL. The file parameter specifies how to retrieve the file content. It should be an URL to the file you want to use as the source. You can also use an expression to get an URL from the context. Returns the created file.
Operation id Blob.CreateFromURL
AliasesBlob.Create
Category Fetch
Label File From URL
Requires
Since

Parameters

Name Description Type Required Default value
file resource yes  
encoding string no  
filename string no  
mime-type string no  

Signature

Inputs void
Outputs blob

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.blob.CreateBlob
Contributing Component org.nuxeo.ecm.core.automation.coreContrib

JSON Definition

{
  "id" : "Blob.CreateFromURL",
  "aliases" : [ "Blob.Create" ],
  "label" : "File From URL",
  "category" : "Fetch",
  "requires" : null,
  "description" : "Creates a file from a given URL. The file parameter specifies how to retrieve the file content. It should be an URL to the file you want to use as the source. You can also use an expression to get an URL from the context. Returns the created file.",
  "url" : "Blob.CreateFromURL",
  "signature" : [ "void", "blob" ],
  "params" : [ {
    "name" : "file",
    "description" : null,
    "type" : "resource",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "encoding",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "filename",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "mime-type",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}